package advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by fengtingxin on 2020/3/13.
 */
public class MyMethodInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("进入方法环绕！");
        Object result = invocation.proceed();
        System.out.println("离开方法环绕! ");
        return result;
    }
}
